<div class="modal-header">
	<h4 class="modal-title">{{item.id?'编辑':'添加'}}颜色</h4>
</div>
<div class="modal-body container-fluid form-horizontal">
	<form name="form" novalidate>
		<div class="form-group" >
			<label class="col-xs-2 control-label required">名称：</label>
			<div class="col-xs-8">
				<input type="text" class="form-control" ng-model="item.name" name="name" required
					   uib-tooltip="{{item.name && form.name.$invalid?'有重名':null}}"  id="{{item.id}}" ensure-unique="dictName"
				/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-2 control-label">描述：</label>
			<div class="col-xs-8">
				<input type="text" class="form-control" ng-model="item.val" name="val"   required/>
			</div>
		</div>
	</form>
</div>
<div class="modal-footer">
	<button class="btn btn-primary" ng-click="save(form)">确定</button>
	<button class="btn btn-warning" ng-click="$dismiss()">取消</button>
</div>
